<?php

use think\migration\Migrator;
use think\migration\db\Column;

class OauthPersonalAccessClients extends Migrator
{

    public function change()
    {
        $table = $this->table('oauth_personal_access_clients', ['auto_increment' => true, 'length' => 10, 'signed' => false]);
        $table->addColumn('client_id', 'integer', ['limit' => 10, 'default' => 0, 'signed' => false])
            ->addColumn('expires_at', 'timestamp', ['default' => null, 'null' => true])
            ->addColumn('updated_at', 'timestamp', ['default' => null, 'null' => true])
            ->create();
    }
}
